//
//  Person.h
//  05Faded
//
//  Created by Mars_ZXB on 16/7/9.
//  Copyright © 2016年 BAT3. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface Person : NSObject
@property (nonatomic, retain) NSString *name;
@property (nonatomic, assign) NSInteger age;
@property (nonatomic, retain) NSString *sex;

- (instancetype)initWithName:(NSString *)name age:(NSInteger)age sex:(NSString *)sex;
- (NSComparisonResult)compareByName:(Person *)anotherPerson;
- (NSComparisonResult)compareByAge:(Person *)anotherPerson;
- (NSComparisonResult)compareBySex:(Person *)anotherPerson;
@end
